package com.cq.mapper;

import com.cq.pojo.File;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hibernate.validator.constraints.EAN;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 悠久的苍穹
 * @Date: 2021/1/16 17:45
 * @Description: 文件数据层
 * @Version: 1.0
 */
@Mapper
@Repository
public interface FileMapper {
    List<File> getFile(@Param("page") Integer page, @Param("limit") Integer limit);

    void addFile(@Param("url") String url, @Param("name") String name);

    Integer getCount();

    File getFileById(@Param("id") int id);

    int deleteById(@Param("id") int id);
}
